<?php
/**
 * Supplier Retrieve
 */
class SR extends AppModel {
    var $name = 'SR';

    var $useTable = 'supplier_retrieves';

    var $belongsTo = array('Product', 'CustProductSite',
        'SRH' => array(
            'foreignKey' => 'supplier_retrieve_head_id'
        ),
    );

    var $validate = array(
        'retrieve_qty' => array(
            'rule' => 'numeric',
            'message' => 'Please input retrieve qty.',
            'on' => 'create'
        ),
    );
}
?>
